import { get, put } from "../http";
import type { LoadMeFn, Me, UpdateMeFn } from "./me.types";

export const loadMe: LoadMeFn = () => get<Me>({ url: "/apis/me" });

export const updateMe: UpdateMeFn = (input) => put<Me>({ url: "/apis/me", json: input });
